<?php

/**
 * [PHPFOX_HEADER]
 */
defined('PHPFOX') or exit('No direct script access allowed.');

/**
 *
 *
 */
class Profiles_Component_Controller_Index extends Phpfox_Component {

	public function process()
	{
//        print_r($_REQUEST);exit;
        if($val = $this->request()->get('val')){
            $oSession = Phpfox::getLib('session');
            $oSession->set('pro_vals', $val);
            $error = Phpfox::getService('profiles.process')->sendInvite($val);
            if($error !== false){
                $oSession->set('pro_error', $error);
            }
        }
        $this->url()->send('');
	}

}

?>